
//定义一个变量和一个mixin
@baseFontSize: 75; //基于视觉稿横屏尺寸/100得出的基准font-size
.px2rem(@name, @px) {
	@{name}: @px / @baseFontSize * 1rem;
}
@width: unit(690/@baseFontSize, rem);
@paddingWrap: unit(29/@baseFontSize, rem);
@marginPartTop: unit(50/@baseFontSize, rem);
.textOverflow{
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.layui-carousel > [carousel-item] {
	width: @width;
	margin: 0.386666rem auto;
	border-radius: 0.133333rem;
}
.banner-item {
	display: block;
	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 0.133333rem;
	}
}
.layui-carousel-ind ul {
	background: none;
}
.layui-carousel-arrow {
	width: 0.533333rem;
	height: 0.533333rem;
	line-height: 0.533333rem;
	transform: translateY(50%);
	font-size: 0.266666rem;
}
.layui-carousel-ind {
	text-align: right;
	ul {
		margin-right: 1.066666rem;
		li {
			width: 0.133333rem;
			height: 0.133333rem;
			border-radius: 50%;
		}
	}
}
.layui-carousel:hover .layui-carousel-arrow[lay-type='add'],
.layui-carousel[lay-arrow='always'] .layui-carousel-arrow[lay-type='add'] {
	right: 1.066666rem;
}
.layui-carousel[lay-arrow='always'] .layui-carousel-arrow {
	left: 1.066666rem;
}

// nav
.nav {
	width: @width;
	display: flex;
	justify-content: flex-start;
	// padding: @paddingWrap;
	margin: 0.666666rem auto 0;
	.nav-item {
		width: 18%;
		margin-right: 2%;
		font-size: 0.373333rem;
		text-align: center;
		&:last-of-type {
			margin-right: 0%;
		}
		img {
			width: 0.666666rem;
			height: 0.666666rem;
			margin-bottom: 0.133333rem;
		}
	}
}
.notice {
	display: flex;
	align-items: center;
	width: @width;
	height: unit(70/@baseFontSize, rem);
	margin: @marginPartTop auto;
	border-radius: 50px;
	background: linear-gradient(#e2606e 0%, #f6a6af 100%);
	.notice-icon {
		width: 0.533333rem;
		display: inline-block;
		text-align: center;
		margin: 0 0.266666rem 0 0.4rem;
		flex: 0 0 auto;
	}
	.notice-content {
		width: 7.2rem;
		display: inline-block;
		font-size: 0.373333rem;
		color: #fff;
		text-overflow: ellipsis;
		white-space: nowrap;
		overflow: hidden;
	}
}


.section {
	width: @width;
	margin: @marginPartTop auto;
	.title-wrap {
		position: relative;
		line-height: 1;
		font-size: 0.7rem;
		text-align: center;
		.title {
			font-size: 0.533333rem;
			color: #323233;
			position: absolute;
			left: 50%;
			bottom: 0.066666rem;
			transform: translateX(-50%);
		}
		.sub-title {
			color: #366f70;
			opacity: 0.1;
		}
	}
	
}
.layui-tab {
	position: relative;
	margin-top: 0.533333rem;
	.more {
		color: #366f70;
		font-size: 0.32rem;
		line-height: 40px;
		position: absolute;
		right: 0;
		top: 0;
	}
	.layui-tab-content {
		padding-bottom: 0;
	}
}
.layui-tab-brief>.layui-tab-title .layui-this{
	color: #366F70;
}
.layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after{
	border-color:#366F70 ;
}
.layui-tab-title {
	font-size: 0.373333rem;
	li{
		font-size: 0.373333rem;
		padding:0 0.2rem;
		min-width:0.866666rem;
	}
}

// 文字型内容
.content-item {
	display: flex;
	width: 100%;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
	.part-content {
		display: block;
		width: 48%;
		height: 5.666666rem;
		font-size: 0.32rem;
		color: #979899;
		margin-bottom: 0.3rem;
		background: #fff;
		border-radius: 0.133333rem;
		&:nth-of-type(n + 3) {
			margin-bottom: 0;
		}
		img {
			width: 100%;
			height: 3.466666rem;
			object-fit: cover;
			border-radius: 0.133333rem;
			margin-bottom: 0.333333rem;
		}
		p {
			padding: 0 0.266666rem;
		}
		.name {
			font-size: 0.373333rem;
			color: #323233;
			font-weight: 600;
			margin-bottom: 0.2rem;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}
		.tips {
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-line-clamp: 2;
			-webkit-box-orient: vertical;
		}
	}
}

// 图片型内容
.image-content{
	display: flex;
	width: 100%;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
	.image-item{
		display: block;
		width: 48%;
		height: 3.466666rem;
		position: relative;
		margin-bottom: 0.3rem;
		border-radius: 0.133333rem;
		overflow: hidden;
		&:nth-of-type(n + 3) {
			margin-bottom: 0;
		}
	}
	img{
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 0.133333rem;
	}
	.mask{
		width: 100%;
		height: 30%;
		font-size: 0.373333rem;
		color: #fff;
		background: linear-gradient(to bottom,transparent, rgba(0, 0, 0, 0.2));
		position: absolute;
		left: 0;
		bottom: 0;
	}
	p{
		position: absolute;
		left: 0.133333rem;
		bottom: 0.266666rem;
	}
	
}
.list-content{
	
	.list-item{
		display: flex;
		width: 100%;
		height: 3.2rem;
		justify-content: space-between;
		align-items: center;
		padding: 0.266666rem;
		margin-bottom: 0.266666rem;
		border-radius: 0.133333rem;
		background: #fff;
		overflow: hidden;
		&:last-of-type{
			margin-bottom: 0;
		}
	}
	img{
		width:2.666666rem ;
		height: 2.666666rem;
		object-fit: cover;
		border-radius: 0.133333rem;
		margin-right: 0.266666rem;
	}
	.list-item-info{
		width: calc(100% - 2.9rem);
		height: 100%;
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		flex-direction: column;
		p{
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}
	}
	.news-item-info{
		width: calc(100% - 2.666666rem);
		height: 100%;
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		flex-direction: column;
		p{
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-line-clamp: 2;
			-webkit-box-orient: vertical;
		}
		.name{
			white-space: pre-wrap;
			-webkit-line-clamp:1;
		}
	}
	.name{
		width: 100%;
		font-size:0.373333rem ;
		color: #000;
		font-weight: bold;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		
	}
	.sub-name{
		font-size: 0.32rem;
		color: #979899;
	}
	.flag{
		font-size: 0;
		span{
			display: inline-block;
			color: #366F70;
			background: #ebf0f0;
			font-size: 0.266666rem;
			border-radius: 0.066666rem;
			padding:0 0.066666rem;
			margin-right: 0.133333rem;
		}
	}
	.ask-bar{
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.price{
		color: #DF5F6D;
		font-size: 0.426666rem;
		span{
			font-size: 0.32rem;
		}
	}
	.times{
		font-size: 0.426666rem;
		color:#979899 ;
	}
	.ask-btn{
		display: block;
		width: 1.8rem;
		height: 0.6rem;
		font-size: 0.32rem;
		line-height: 0.6rem;
		text-align: center;
		color: #fff;
		background: #366F70;
		border-radius: 0.666666rem;
	}
}
// 土特产
.local-content{
	height: 5.333333rem;
	display: flex;
	justify-content: space-between;
	margin-top: @marginPartTop;
	.left{
		width: 48%;
		display: block;
		position: relative;
		border-radius: 0.133333rem;
		.tips{
				-webkit-line-clamp: 3;
		}
	}
	img{
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 0.133333rem;
	}
	.mask{
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,.6);
		border-radius: 0.133333rem;
		position: absolute;
		left: 0;
		top: 0;
	}
	.explain{
		width: 80%;
		color: #fff;
		font-size: 0.266666rem;
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translateX(-50%) translateY(-50%);
	}
	.title{
		font-size: 0.453333rem;
		text-align: center;
		margin-bottom: 0.266666rem;
		font-weight: bold;
	}
	.right{
		width: 48%;
		display: flex;
		height: 100%;
		justify-content: space-between;
		flex-direction: column;
		font-size: 0.266666rem;
		color: #fff;
		.up{
			display: block;
			width:100%;
			height: 48%;
			position: relative;
			border-radius: 0.133333rem;
		}
		.down{
			display: block;
			width:100%;
			height: 48%;
			position: relative;
			border-radius: 0.133333rem;
		}
	}
	.tips{
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}

// 合作伙伴
.partner{
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 0.4rem;
	.partner-item{
		display: block;
		width: 2.933333rem;
		height: 1.6rem;
		margin-top: 0.133333rem;
		border: 1px solid #e5e5e5;
		border-radius: 0.133333rem;
		overflow: hidden;
		img{
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
	}
	&::after{
		content: '';
		width: 2.933333rem;
	}
}
